import request from '@/utils/request';
// 获取首页信息 title icon
export function getIndexPlatformInfo() {
  return request({
    url: '/appv2/api/index/platformInfo',
    // url: 'http://universityed4e759ca2ed893test.chatgk.com/api/index/platformInfo',
    method: 'post',
  });
}
// 获取智能填表列表
export function schoolEnrollChance(data) {
  return request({
    url: '/appv2/api/index/schoolEnrollChance',
    method: 'post',
    data: data,
  });
}
// app端的账号登录
export function phoneLogin(data) {
  return request({
    url: '/appv2/api/index/phoneLogin',
    method: 'post',
    data: data,
  });
}
// 保存志愿表
export function zySave(data) {
  return request({
    url: '/appv2/api/index/zySave',
    method: 'post',
    data: data,
  });
}
// 下载志愿表
export function downloadZY(data) {
  return request({
    url: '/appv2/api/index/downloadZY',
    method: 'post',
    data: data,
    // headers:{
    // 	'Content-Type':'application/josn;application/octet-stream'
    // },
    // responseType:'blob'
  });
}
// 分享志愿表
export function shareZY(data) {
  return request({
    url: '/appv2/api/index/shareZY',
    method: 'post',
    data: data,
  });
}

// 下载打印版
export function shareZYNew(data) {
  return request({
    url: '/appv2/api/index/shareZYNew',
    method: 'post',
    data: data,
  });
}

// 获取志愿表详情
export function getZyInfo(data) {
  return request({
    url: '/appv2/api/index/zyInfo',
    method: 'post',
    data: data,
  });
}
// 修改个人资料
export function editUser(data) {
  return request({
    url: '/appv2/api/index/editUser',
    method: 'post',
    data: data,
  });
}
// 位次查询条件
export function scoreStageFilter(data) {
  return request({
    url: '/appv2/api/index/scoreStageFilter',
    method: 'post',
    data: data,
  });
}
// 位次查询
export function scoreStageInfo(data) {
  return request({
    url: '/appv2/api/index/scoreStageInfo',
    method: 'post',
    data: data,
  });
}

// 工具箱提前批招生计划
export function getPreSchoolPlan(data) {
  return request({
    url: '/ssystem-api/api/toolbox/schoolPlan',
    method: 'post',
    data: data,
  });
}

export function getSchoolPlan(data) {
  return request({
    url: '/appv2/api/index/schoolPlan',
    method: 'post',
    data: data,
  });
}

//获取学校专业分数线筛选条件 or 提前批
export function getSchoolPlanFilter(data) {
  return request({
    url: '/ssystem-api/api/toolbox/OrdinaryBatchFiter',
    method: 'post',
    data: data,
  });
}

//院校详情
export function getSchoolHome(data) {
  return request({
    url: '/appv2/api/index/schoolHome',
    method: 'post',
    data: data,
  });
}

// 专业评级
export function getSchoolSubjectEvaluate(data) {
  return request({
    url: '/appv2/api/index/schoolSubjectEvaluate',
    method: 'post',
    data: data,
  });
}

// 提前批分类
export function getPreBatchLevel(data) {
  return request({
    url: '/ssystem-api/api/toolbox/preBatchLevel',
    method: 'post',
    data: data,
  });
}

// 院系设置
export function getSchoolYXMajor(data) {
  return request({
    url: '/appv2/api/index/schoolYXMajor',
    method: 'post',
    data: data,
  });
}

// 就业报告
export function getSchoolJY(data) {
  return request({
    url: '/appv2/api/index/schoolJY',
    method: 'post',
    data: data,
  });
}

//招生简章
export function getSchoolZS(data) {
  return request({
    url: '/appv2/api/index/schoolZS',
    method: 'post',
    data: data,
  });
}

//获取学校分数线
export function getSchoolYearline(data) {
  return request({
    url: '/appv2/api/index/schoolYearline',
    method: 'post',
    data: data,
  });
}

// 获取专业分数线
export function getSchoolScoreline(data) {
  return request({
    url: '/appv2/api/index/schoolScoreline',
    method: 'post',
    data: data,
  });
}

// 获取专业分数线筛选条件
export function getSchoolScorelineFilter(data) {
  return request({
    url: '/ssystem-api/api/toolbox/schoolScorelineFilter',
    method: 'post',
    data: data,
  });
}

// 各专业招生计划提前批
export function getPreBatchPlan(data) {
  return request({
    url: '/appv2/api/index/preBatchPlan',
    method: 'post',
    data: data,
  });
}

// 历年录取-提前批--提前批分数线
export function getPreBatchSearch(data) {
  return request({
    url: '/appv2/api/index/preBatchSearch',
    method: 'post',
    data: data,
  });
}

// 新提前批搜索
export function preBatchPlanSearchSchool(data) {
  return request({
    url: '/appv2/api/index/preBatchPlanSearchSchool',
    method: 'post',
    data: data,
  });
}

// 机构-分数线筛选条件
export function schoolScorelineFilter(data) {
  return request({
    url: '/ssystem-api/api/toolbox/schoolScorelineFilter',
    method: 'post',
    data: data,
  });
}

// 机构-院校分数线
export function schoolScoreline(data) {
  return request({
    url: '/ssystem-api/api/toolbox/schoolScoreline',
    method: 'post',
    data: data,
  });
}

// 机构-院校分数线
export function majorScoreline(data) {
  return request({
    url: '/ssystem-api/api/toolbox/majorScoreline',
    method: 'post',
    data: data,
  });
}

// 加入对比---取消对比
export function getLikeSave(data) {
  return request({
    url: '/appv2/api/index/likeSave',
    method: 'post',
    data: data,
  });
}

// 获取关注列表 --对比列表
export function getLikeList(data) {
  return request({
    url: '/appv2/api/index/likeList',
    method: 'post',
    data: data,
  });
}

// 查专业筛选条件
export function getAllMajor(data) {
  return request({
    url: '/appv2/api/index/allMajor',
    method: 'post',
    data: data,
  });
}

//获取热门专业
export function getMajorDetail(data) {
  return request({
    url: '/appv2/api/index/majorDetail',
    method: 'post',
    data: data,
  });
}

//获取全部职业
export function getAllCareer(data) {
  return request({
    url: '/appv2/api/index/allCareer',
    method: 'post',
    data: data,
  });
}

//职业详情
export function getCareerDetail(data) {
  return request({
    url: '/appv2/api/index/careerDetail',
    method: 'post',
    data: data,
  });
}

//职业就业岗位
export function getCareerJobPosition(data) {
  return request({
    url: '/appv2/api/index/careerJobPosition',
    method: 'post',
    data: data,
  });
}

//职业企业招聘
export function getCareerJobCompany(data) {
  return request({
    url: '/appv2/api/index/careerJobCompany',
    method: 'post',
    data: data,
  });
}

// 获取省份
export function getProvince(data) {
  return request({
    url: '/appv2/api/index/provinceInfo',
    method: 'post',
    data: data,
  });
}

// 批次线
export function getBatchLineInfo(data) {
  return request({
    url: '/appv2/api/index/batchLineInfo',
    method: 'post',
    data: data,
  });
}

// 一分一段
export function getScoreStageFilter(data) {
  return request({
    url: '/ssystem-api/api/toolbox/scoreStageFilter',
    method: 'post',
    data: data,
  });
}

// 位次查询
export function getScoreStageInfo1(data) {
  return request({
    url: '/appv2/api/index/scoreStage',
    method: 'post',
    data: data,
  });
}

// 位次查询
export function getScoreStageInfo2(data) {
  return request({
    url: '/ssystem-api/api/toolbox/scoreStageInfo',
    method: 'post',
    data: data,
  });
}

// 招生简章详情
export function getSchoolZSDetail(data) {
  return request({
    url: '/appv2/api/index/schoolZSDetail',
    method: 'post',
    data: data,
  });
}

// 各类描述信息
export function getNoteDesc(data) {
  return request({
    url: '/appv2/api/index/noteDesc',
    method: 'post',
    data: data,
  });
}

//测评专业推荐
export function getSelectSearchMajorClassJudge(data) {
  return request({
    url: '/appv2/api/index/selectSearchMajorClassJudge',
    method: 'post',
    data: data,
  });
}

//系统检测
export function getRunInfo(data) {
  return request({
    url: '/ssystem-api/api/systerm/runInfo',
    method: 'post',
    data: data,
  });
}

// 获取省份
export function getProvinceList(data) {
  return request({
    url: '/ssystem-api/api/toolbox/getProvince',
    method: 'post',
    data: data,
  });
}

// 获取权限菜单
export function menuConfig(data) {
  return request({
    url: '/ssystem-api/api/auth/menuConfig',
    method: 'post',
    data: data,
  });
}
// 获取机构权限菜单
export function menuConfigCustomer(data) {
  return request({
    url: '/ssystem-api/api/authmanage/menuConfig',
    method: 'post',
    data: data,
  });
}
// 添加目录
export function menuSave(data) {
  return request({
    url: '/ssystem-api/api/auth/menuSave',
    method: 'post',
    data: data,
  });
}
// 添加机构菜单目录
export function customerMenuSave(data) {
  return request({
    url: '/ssystem-api/api/authmanage/menuSave',
    method: 'post',
    data: data,
  });
}

// 删除目录
export function menuDel(data) {
  return request({
    url: '/ssystem-api/api/auth/menuDel',
    method: 'post',
    data: data,
  });
}
// 删除机构菜单目录
export function customerMenuDel(data) {
  return request({
    url: '/ssystem-api/api/authmanage/menuDel',
    method: 'post',
    data: data,
  });
}
// 工单管理-获取学生信息
export function userInfo(data) {
  return request({
    url: '/ssystem-api/api/apply/userInfo',
    method: 'post',
    data: data,
  });
}

// 工单管理-修改学生信息
export function userVipSave(data) {
  return request({
    url: '/ssystem-api/api/apply/userVipSave',
    method: 'post',
    data: data,
  });
}

// 工单管理-修改学生信息
export function getNoteDescTips(data) {
  return request({
    url: '/ssystem-api/api/Systerm/getNoteDesc',
    method: 'post',
    data: data,
  });
}

// 新提前批搜索
export function gkbInfo(data) {
  return request({
    url: '/appv2/api/index/gkbInfo',
    method: 'post',
    data: data,
  });
}
// 获取机构权限菜单
export function getCustomerList(data) {
  return request({
    url: '/ssystem-api/api/store/list',
    method: 'post',
    data: data,
  });
}
// 添加机构
export function addStore(data) {
  return request({
    url: '/ssystem-api/api/store/addStore',
    method: 'post',
    data: data,
  });
}
// 删除机构列表
export function delCustomer(data) {
  return request({
    url: '/ssystem-api/api/store/del',
    method: 'post',
    data: data,
  });
}
// 编辑机构列表
export function editCustomer(data) {
  return request({
    url: '/ssystem-api/api/store/edit',
    method: 'post',
    data: data,
  });
}
// 获取机构域名信息
export function getStroeDomain(data) {
  return request({
    url: '/ssystem-api/api/store/getStroeDomain',
    method: 'post',
    data: data,
  });
}
// 获取机构网站信息
export function getStroeInfo(data) {
  return request({
    url: '/ssystem-api/api/store/stroeInfo',
    method: 'post',
    data: data,
  });
}
// 修改机构使用状态
export function setStartOrEnd(data) {
  return request({
    url: '/ssystem-api/api/store/startOrEnd',
    method: 'post',
    data: data,
  });
}
// 修改机构网站信息
export function saveStoreInfo(data) {
  return request({
    url: '/ssystem-api/api/store/saveStoreInfo',
    method: 'post',
    data: data,
  });
}
// 上传图片
export function imageUpload(data) {
  return request({
    url: '/ssystem-api/api/systerm/imageUpload',
    method: 'post',
    data: data,
  });
}
// 添加/修改机构域名
export function storeDomain(data) {
  return request({
    url: '/ssystem-api/api/store/storeDomain',
    method: 'post',
    data: data,
  });
}
// 删机构域名
export function storeDomainDel(data) {
  return request({
    url: '/ssystem-api/api/store/storeDomainDel',
    method: 'post',
    data: data,
  });
}
// 新增or修改应用
export function newAppInfo(data) {
  return request({
    url: '/ssystem-api/api/ManagerAppStore/saveManagerApp',
    method: 'post',
    data: data,
  });
}
// 获取应用列表
export function getAppList(data) {
  return request({
    url: '/ssystem-api/api/ManagerAppStore/managerAppList',
    method: 'post',
    data: data,
  });
}
// 获取应用详情
export function getAppInfo(data) {
  return request({
    url: '/ssystem-api/api/ManagerAppStore/managerAppDetail',
    method: 'post',
    data: data,
  });
}
// 获取省份
export function getProvinceInfo(data) {
  return request({
    url: '/appv2/api/index/provinceInfo',
    method: 'post',
    data: { onlyName: 1 },
    headers: {
      'Content-Type': 'application/josn;application/octet-stream',
      isToken: false,
    },
  });
}
// 获取省份
export function getProvinceInfo2(data) {
  return request({
    url: '/ssystem-api/api/index/provinceInfo',
    method: 'post',
    data: data,
  });
}
// 删除应用
export function delApp(data) {
  return request({
    url: '/ssystem-api/api/ManagerAppStore/delManagerApp',
    method: 'post',
    data: data,
  });
}
// 应用参数列表
export function getManagerAppList(data) {
  return request({
    url: '/ssystem-api/api/ManagerAppConfig/managerAppConfigList',
    method: 'post',
    data: data,
  });
}
// 新增或修应用参数
export function addOrEditAppInfo(data) {
  return request({
    url: '/ssystem-api/api/ManagerAppConfig/saveManagerAppConfig',
    method: 'post',
    data: data,
  });
}
// 删除应用参数
export function delAppInfo(data) {
  return request({
    url: '/ssystem-api/api/ManagerAppConfig/delManagerAppConfig',
    method: 'post',
    data: data,
  });
}
